<template>
  <div class="interactList">
    <div class="list" v-for="(temp,index) in list" :key="index">
      <interactTag :value="temp.tag"></interactTag>
      <div class="interact">
           <van-image fit="cover" :src="temp.poster | cover" alt="" class="interactImg" @click="routerLink(temp.href)"></van-image>
        <!-- <img :src="temp.poster | cover" alt="" class="interactImg"> -->
      </div>
    </div>
  </div>
</template>

<script>
import interactTag from "@/components/item-interactTag";
export default {
  props: {
    list: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  components: {
    interactTag
  },
  methods:{
    routerLink(href){
      window.location.href=href
    }
  }
};
</script>

<style lang="less">
.interactList {
  width: 100%;
  padding: 0 3vw;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  box-sizing: border-box;
  margin-bottom: 5%;
  .list {
    width: 50%;
    position: relative;
    .interact {
      // width: 160px;
      height: 310px;
      overflow: hidden;
      margin: 10px 7px;
      background: #f8f8f8;
      border-radius: 5px;
      img {
        width: 100%;
      }
    }
  }
}
</style>